package com.gitee.httphelper.result;

import org.apache.http.HttpResponse;

import java.io.IOException;
import java.io.InputStream;
import java.util.Map;

/**
 * 结果包装类
 * @author thc
 */
public interface ResponseResult {
    int getStatus();

    String asString() throws IOException;

    InputStream asStream() throws IOException;

    Map<String, String> getHeaders();

    void closeResponse();

    HttpResponse getResponse();
}